package de.gameduell.framework.gui.button {
	import flash.events.Event;	

	/**
	 * @author cbra
	 */
	public class ButtonEvent extends Event {
		
		public static const UP:String 		 = "up";
		public static const DOWN:String 	 = "down";
		public static const OVER:String 	 = "over";
		public static const OUT:String 	 	 = "out";
		public static const CLICK:String	 = "ButtonClick";
		
		public static const OVER_TOGGLED:String 	 = "overToggled";
		public static const UP_TOGGLED:String 	 	 = "upToggled";
		public static const DOWN_TOGGLED:String 	 = "downToggled";
		public static const DISABLED_TOGGLED:String  = "disabledToggled";
		public static const CLICK_TOGGLED:String 	 = "clickToggled";
		
		public static const INACTIVE_CLICK:String = "inactive_click";
		
		private var _button:Button;
			
		public function ButtonEvent(type:String, aButton:Button,bubbles:Boolean = false, cancelable:Boolean = false) {
			super(type, bubbles, cancelable);
			_button = aButton;
		}
		
		public function get button():Button{
			return _button;
		}
	}
}
